/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.pipeline-empty-container {
  background: #29b4e1 url('/assets/logo-watermark-big.png') no-repeat center bottom;
  position: absolute;
  top: 0;
  left: 0;
  bottom: -45px;
  width: 100%;
  overflow: hidden;

  display: none;

  .error-alert-div {
    margin-top: 50px;
  }

  .create-pipeline-btn-group {
    margin: 250px 0 0 38%;
    color: #ffffff;

    h2 {
      padding-left: @defaultPadding * 6;
      padding-bottom: @defaultPadding * 2;
      font-style: italic;
      font-family: serif;
    }

    .btn {
      margin-right: @defaultPadding;
    }
  }

  .show {
    display: inherit;
  }
}

.home-page {
  .panel-heading {
    height: 45px;
    padding: @smallPadding @smallPadding*3;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);

    .panel-title {
      h3 {
        padding-top: @smallPadding;
        margin: 0;
        font-size: 20px;
        padding-right: @defaultPadding;
      }

      .refresh-btn {
        margin-left: 0;
        padding: 2px 0;
      }

      .sort-by-label {
        padding-top: 7px;
        font-size: 14px;
        display: inline-block;
      }

      .sort-by-dropdown {
        .btn {
          padding-left: 0;
        }

        .fa {
          color: #bebebe;
          font-size: 12px;
        }


      }
    }
  }

  .panel-body {
    background: #29b4e1 url('/assets/logo-watermark-big.png') no-repeat center bottom;
    //background: #e9e9e9;
    //top: 97px;
    left: 0;
    right: 300px;
    padding: 10px 10px 40px 0;
    position: absolute;
    transition: opacity .3s;
    overflow: auto;

    .alert {
      margin-left: @defaultPadding;
    }

    .tile-list {

      .pipeline-container {

        position: relative;
        display: inline-block;
        margin: 0 0 15px 15px;
        padding: 22px 20px 40px;
        border-radius: 2px 3px 2px 2px;
        box-shadow: 0 1px 2px rgba(0,0,0,.15);
        vertical-align: top;
        opacity: 1;
        float: left;
        cursor: pointer;

        header {
          h2 {
            font-size: 18px;
            font-weight: 600;
            line-height: 22px;
            color: #4e4e4e;
            text-decoration: none;
            text-transform: none;
            display: inline;
            background-image: linear-gradient(to top,rgba(0,0,0,0),rgba(0,0,0,0) 1px,#d3d3d3 1px,#d3d3d3 2px,rgba(0,0,0,0) 2px);
            position: relative;
            transition: opacity .3s ease-out 0s,visibility .3s ease-out 0s;
            pointer-events: none;
            word-wrap: break-word;
          }
        }


        .project-additional-info {
          position: absolute;
          left: 20px;
          right: 20px;
          bottom: 50px;
          line-height: 14px;

          span {
            font-size: 12px;
            color: #a4a3a3;
          }
        }

        footer {
          height: 40px;
          left: 0;
          right: 0;
          bottom: 0;
          position: absolute;
          background-color: #f7f7f7;

          .running-status, .invalid-status {
            width: 23px;
            height: 31px;
            position: absolute;
            left: 16px;
            bottom: 0;
            color: @brand-success;
          }

          .running-status {
            color: @brand-success;
          }

          .invalid-status {
            color: @brand-danger;
          }

          .triggered-alert-status {
            width: 50px;
            height: 31px;
            position: absolute;
            left: 50px;
            bottom: 0;
            color: #b6b6b6;
          }

          .pipeline-menu {
            width: 36px;
            height: 40px;
            position: absolute;
            right: 0;
            bottom: 0;
            cursor: pointer;

            .split-bar {
              content: '';
              width: 1px;
              height: 20px;
              position: absolute;
              left: 0;
              top: 10px;
              background-color: #e3e3e3;
            }

            .action-menu {
              padding: @defaultPadding;

              .fa {
                color: #a2a1a1;

                &:hover {
                  color: @streamsets-icon-btn-hover-color;
                }
              }
            }
          }
        }

        &.new-pipeline {
          display: -webkit-inline-flex;
          display: -ms-inline-flexbox;
          display: inline-flex;
          width: 220px;
          height: 170px;
          padding: 0;
          border: 1px solid #dedede;
          box-shadow: 0 1px 2px rgba(0,0,0,.05);

          .centering-container {
            margin: auto;

            a {
              display: block;
              color: white;
            }
          }
        }

        &.single-pipeline {
          width: 220px;
          height: 170px;
          background-color: #FFF;
        }

      }
    }

  }
}



